Skip to content

fix(tui): scroll conversation with ↑/↓/wheel and cap thinking excerpt#4

Merged
jkyberneees merged 1 commit into
mainfrom
fix/scroll-thinking-cap
Jun 20, 2026
Merged

fix(tui): scroll conversation with ↑/↓/wheel and cap thinking excerpt#4
jkyberneees merged 1 commit into
mainfrom
fix/scroll-thinking-cap

Conversation

@jkyberneees

Copy link
Copy Markdown
Contributor

This PR makes the conversation transcript navigable with arrow keys and the mouse wheel, and prevents the live "thinking…" block from growing without bound.

Changes

  • Scroll navigation
    • Enable mouse reporting so the wheel scrolls the transcript.
    • Route ↑/↓ (and Ctrl+P/Ctrl+N) to the viewport when the textarea cursor is at the first/last input line; otherwise the cursor still moves inside the textarea.
    • Update welcome banner and README keybinding hints.
  • Thinking cap
    • Trim the live reasoning excerpt to the latest 240 runes so verbose reasoning streams don't push the transcript off-screen.
  • Tests
    • Add tests for ↑/↓ transcript scrolling, multi-line textarea editing, mouse-wheel scrolling, and the thinking cap.

How to verify

go test ./...

- Enable mouse cell motion so the wheel scrolls the transcript.
- Route ↑/↓ (and Ctrl+P/Ctrl+N) to the viewport when the textarea cursor
  is at the first/last input line, preserving multi-line cursor movement.
- Update welcome banner and README keybinding hints.
- Cap the live thinking excerpt to the latest 240 runes so verbose reasoning
  streams do not push the transcript off-screen.
- Add tests for scroll navigation, mouse wheel, and thinking cap.
@jkyberneees jkyberneees merged commit 7e306f2 into main Jun 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant